<?php

function db_connect()
{
	$c = mysql_pconnect("localhost","root","") or 
		die("Can't open database : ".mysql_error());
	mysql_select_db("projlibre", $c);
	return ($c);
}


function db_query($query)
{
	global $connect;
	return(mysql_query($query, $connect));
}

function db_exit($connect)
{
	if ($connect)
		mysql_close($connect);
}
?>